package com.zgf.jdbcTemplate;

import com.zgf.dao.AccountDao;
import com.zgf.domain.Account;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

public class JdbcTemplateDemo4 {
    public static void main(String[] args) {
        ApplicationContext ac =new ClassPathXmlApplicationContext("applicationContext.xml");

        AccountDao a= (AccountDao) ac.getBean("accountDao");

       // System.out.println( a.findById(1));
      //  System.out.println(a.findByName("奥特曼"));
        a.listAccount();






    }
}
